<template>
    <div class="tab">
      <router-link tag="div" class="tab-item" to="/Recommend">
        <span class="tab-link">推荐</span>
      </router-link>
      <router-link tag="div" class="tab-item" to="/Singer">
        <span class="tab-link">歌手</span>
      </router-link>
      <router-link tag="div" class="tab-item" to="/Rank">
        <span class="tab-link">排行</span>
      </router-link>
      <router-link tag="div" class="tab-item" to="/Search">
        <span class="tab-link">搜索</span>
      </router-link>
    </div>
</template>

<script type="text/ecmascript-6">
  export default {}
</script>

<style scoped lang="stylus" type="text/stylus">
  @import "~common/stylus/variable"
  @import "~common/stylus/mixin"

  .tab
    display: flex
    align-items center
    margin-bottom 4px
  .tab-link
    display inline-block
    height: 30px
    line-height 30px
    border-bottom: 2px solid transparent
  .tab-item
    flex: 1
    text-align:center
  & .router-link-active .tab-link
    color $color-theme
    border-bottom: 2px solid $color-theme


</style>
